#!/bin/bash

# 删除dist文件夹
rm -rf dist
echo "删除dist目录"

# 打包
npm run build
echo "打包成功"

# 上传 password: ak5649
scp -r ./dist root@192.168.1.237:/home/www/html/game_h5/
echo "上传成功"

# 上传成功后删除dist文件夹
rm -rf dist
echo "删除dist目录"


# --------------
# ssh root@xx.xx.xx
# ssh -p 22 root@xx.xx.xx
# ssh -p 2222 root@xx.xx.xx


# linux, window
